package com.qf.day61.service.impl;

import com.qf.day61.dao.BasicInfoDAO;
import com.qf.day61.entity.BasicInfo;
import com.qf.day61.service.BasicInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BasicInfoServiceImpl implements BasicInfoService {
    private final BasicInfoDAO basicInfoDAO;

    public BasicInfoServiceImpl(BasicInfoDAO basicInfoDAO) {
        this.basicInfoDAO = basicInfoDAO;
    }

    @Override
    public List<BasicInfo> findStep(Integer goodsId, Integer step) {
        return basicInfoDAO.findAllByGoodsIdAndStep(goodsId, step);
    }
}
